package club.chenlinghong.product.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 商品
 * @Author chenlinghong
 * @Date 2019/6/18 16:16
 * @Version V1.0
 */
@Table(name = "product_info")
@Data
@Entity
public class ProductInfo implements Serializable {

    private static final long serialVersionUID = -8771816176892974038L;

    /**
     * 商品ID
     */
    @Id
    private String productId;

    /**
     * 名称
     */
    private String productName;

    /**
     * 价格
     */
    private BigDecimal productPrice;

    /**
     * 库存
     */
    private Integer productStock;

    /**
     *  描述
     */
    private String productDescription;

    /**
     * 小图
     */
    private String productIcon;

    /**
     * 状态：0正常，1下架
     */
    private Integer productStatus;

    /**
     * 类目编号
     */
    private Integer catagoryType;

    private Date createTime;

    private Date updateTime;
}
